﻿using System;
using System.Linq.Expressions;

namespace Titan
{
    public class ConditionCollection<T> : ConditionCollection
    {
        public ConditionCollection():base()
        {
        }
        public ConditionCollection(Expression<Func<T, bool>> expression)
            : base()
        {
            Add(expression);
        }
        public void Add(Expression<Func<T, bool>> expression)
        {
            IConditionExpression conditionExpression = LambdaHelper.ToConditionExpression<T>(expression);
            Add(conditionExpression);
        }

    }
}
